#include <iostream>
#include <map>
#include <string>
#include <fstream>


using namespace std;


signed main() {
    ifstream f1cin("C:\\Users\\lenovo\\Desktop\\a1.out", ios::in), 
             f2cin("C:\\Users\\lenovo\\Desktop\\P3834_4.out", ios::in);
    cout << (-1 + 0) / 2 << " " << (-1 + 0 >> 1) << endl;
    string s, s1, s2;
    int d = 1;
    while (f1cin >> s) {
        f2cin >> s2;
        if (s != s2) {
            cout << "NO! :" << d << " " << s << " " << s2 << endl;
            break;
        } else d ++;
    }
    return 0;
}